import httpInstance from "@/utils/http"

// 登录接口 12056258293 hm#qd@23!
export const loginAPI = (data: { account: string, password: string }) => {
    return httpInstance({ url: '/login', method: 'POST', data });
};

// 获取用户推荐商品列表
export const getRelavantListAPI = (data = { limit: 4 }) => {
    return httpInstance({
        method: 'GET',
        url: '/goods/relevant',
        params: data,
    });
};

// 获取用户订单列表
export const getUserOrderListAPI = (params = { orderState: 0, page: 1, pageSize: 2 }) => {
    return httpInstance({
        url: '/member/order',
        method: 'GET',
        params
    });
};